home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld Secrets (4th Edition)
/
Mac Secrets CD 4th Ed.toast
/
Apple Advanced Technologies
/
Apple Speech Technologies 1.5
/
PlainTalk Developer Info
/
Speech Recognition Manager SDK
/
SR 1.5 Interfaces & Lib
/
NewSRNames.dict
next >
Wrap
Text File
|
1996-10-29
|
8KB
|
237 lines
#
# File: NewSRNames.dict
#
# Copyright: © 1995 by Apple Computer, Inc.
# All rights reserved.
#
# Version: PlainTalk 1.5 Developer Release
#
# Bugs?: If you find a problem with this file, send the file and version
# information (from above) and the problem description to:
#
# Internet: apple.bugs@applelink.apple.com
# AppleLink: APPLE.BUGS
#
#
# Purpose: This file was created to convert the older names of speech recognition
# types and constants to the names used in the final release.
#
# Usage: You need to run each file in your source through the Canon tool with
# this file. Below is an example. Be sure to change the file extension
# if your sources source file names end in something other than ".c"
#
# Note: 1)The Canon tool does simple text replacement. It has no concept of
# grammar, so it might do a replacement that is not necessary. The
# example below shows all the changes the tool makes. You should
# review these changes manually.
# 2) The sample script below makes changes to your source files, and
# generates a log (a diff to stdout) of those changes. You many wish
# to make a backup of your sources before running the script.
#
# Set Sources "" # set the variable Sources to the path of the sources. (Ex. Set Sources "Hard Disk:Sources:")
# Set NewSRNames "" # set the variable to be the full path of this file (Ex. Set NewSRNames "Hard Disk:NewSRNames.dict")
# Set Exit 0
# For i in `Files -f -r "{Sources}"≈.c`
# If `Exists -f "{i}"`
# Canon -s "{NewSRNames}" "{i}" > "{i}.can"
# Compare "{i}" "{i}.can"
# Rename -y "{i}.can" "{i}"
# End
# End
#
#
#################
# Error codes
#################
eSRNotAvailable kSRNotAvailable
eSRInternalError kSRInternalError
eSRComponentNotFound kSRComponentNotFound
eSROutOfMemory kSROutOfMemory
eSRNotASpeechObject kSRNotASpeechObject
eSRBadParameter kSRBadParameter
eSRParamOutOfRange kSRParamOutOfRange
eSRBadSelector kSRBadSelector
eSRBufferTooSmall kSRBufferTooSmall
eSRNotARecSystem kSRNotARecSystem
eSRFeedbackNotAvail kSRFeedbackNotAvail
eSRCantSetProperty kSRCantSetProperty
eSRCantGetProperty kSRCantGetProperty
eSRCantSetDuringRecognition kSRCantSetDuringRecognition
eSRAlreadyListening kSRAlreadyListening
eSRNotListeningState kSRNotListeningState
eSRModelMismatch kSRModelMismatch
eSRNoClientLanguageModel kSRNoClientLanguageModel
eSRNoPendingUtterances kSRNoPendingUtterances
eSRRecognitionAborted kSRRecognitionCanceled
eSRRecognitionCanceled kSRRecognitionCanceled
eSRRecognitionDone kSRRecognitionDone
eSROtherRecAlreadyModal kSROtherRecAlreadyModal
eSRHasNoSubItems kSRHasNoSubItems
eSRSubItemNotFound kSRSubItemNotFound
eSRLanguageModelTooBig kSRLanguageModelTooBig
eSRAlreadyReleased kSRAlreadyReleased
eSRAlreadyFinished kSRAlreadyFinished
eSRWordNotFound kSRWordNotFound
eSRNotFinishedWithRejection kSRNotFinishedWithRejection
eSRExpansionTooDeep kSRExpansionTooDeep
eSRTooManyElements kSRTooManyElements
eSRCantAdd kSRCantAdd
eSRSndInSourceDisconnected kSRSndInSourceDisconnected
eSRCantReadLanguageObject kSRCantReadLanguageObject
eSRNotImplementedYet kSRNotImplementedYet
#################
# Speech objects
#################
SpeechObject SRSpeechObject
RecognitionSystem SRRecognitionSystem
Recognizer SRRecognizer
SpeechSource SRSpeechSource
RecognitionResult SRRecognitionResult
LMObject SRLanguageObject
LanguageObject SRLanguageObject
LanguageModel SRLanguageModel
LMPath SRPath
LMPhrase SRPhrase
LMWord SRWord
#################
# Other types
#################
LMFlags SRLanguageObjectFlags
SpeedSetting SRSpeedSetting
RejectionLevel SRRejectionLevel
#################
# Recognition System Types
#################
kDefaultRecognitionSystemID kSRDefaultRecognitionSystemID
#################
# Recognition System Properties
#################
kRejectedWord kSRRejectedWord
kSeparationChars kSRSeparationChars
kFeedbackAndListeningModes kSRFeedbackAndListeningModes
kNoFeedbackNoListenModes kSRNoFeedbackNoListenModes
kHasFeedbackHasListenModes kSRHasFeedbackHasListenModes
kNoFeedbackHasListenModes kSRNoFeedbackHasListenModes
#################
# Speech Source Types
#################
kLiveDesktopSpeechSource kSRLiveDesktopSpeechSource
kCannedDesktopSpeechSource kSRCanned22kHzSpeechSource
#################
# Notification Flags
#################
kNotifyRecognitionBeginning kSRNotifyRecognitionBeginning
kNotifyRecognitionDone kSRNotifyRecognitionDone
#################
# AppleEvent constants
#################
keyRecognizer keySRRecognizer
keySpeechResult keySRSpeechResult
keySpeechStatus keySRSpeechStatus
typeRecognizer typeSRRecognizer
typeSpeechResult typeSRSpeechResult
#################
# Recognizer Properties
#################
kSearchStatusParam kSRSearchStatusParam
kNotificationParam kSRNotificationParam
kCallBackParam kSRCallBackParam
kAutoFinishingParam kSRAutoFinishingParam
kForegroundOnly kSRForegroundOnly
kBlockBackground kSRBlockBackground
kBlockModally kSRBlockModally
kWantsResultTextDrawn kSRWantsResultTextDrawn
kWantsAutoFBGestures kSRWantsAutoFBGestures
kSoundInVolume kSRSoundInVolume
kReadAudioFSSpec kSRReadAudioFSSpec
kCancelOnSoundOut kSRCancelOnSoundOut
kSpeedVsAccuracyParam kSRSpeedVsAccuracyParam
kUseToggleListen kSRUseToggleListen
kUsePushToTalk kSRUsePushToTalk
kListenKeyMode kSRListenKeyMode
kListenKeyCombo kSRListenKeyCombo
kListenKeyName kSRListenKeyName
kKeyWord kSRKeyWord
kKeyExpected kSRKeyExpected
#################
# Operational Status Flags
#################
kIdleRecognizer kSRIdleRecognizer
kSearchInProgress kSRSearchInProgress
kSearchWaitForAllClients kSRSearchWaitForAllClients
kMustCancelSearch kSRMustCancelSearch
kPendingSearch kSRPendingSearch
#################
# Recognition Result Properties
#################
kTEXTFormat kSRTEXTFormat
kLMPhraseFormat kSRPhraseFormat
kLMPathFormat kSRPathFormat
kLanguageModelFormat kSRLanguageModelFormat
#################
# LanguageObject Family Properties
#################
kSpelling kSRSpelling
kLMObjType kSRLMObjType
kRefCon kSRRefCon
kEnabled kSREnabled
kOptional kSROptional
kRepeatable kSRRepeatable
kRejectable kSRRejectable
kPrimitive kSRPrimitive
kRejectionLevel kSRRejectionLevel
kFinishingFlags kSRFinishingFlags
#################
# Language Object Types
#################
kLMType kSRLanguageModelType
kPathType kSRPathType
kPhraseType kSRPhraseType
kWordType kSRWordType
#################
# Default rejection level
#################
kDefaultLMRejectionLevel kSRDefaultRejectionLevel
#################
# Finishing Flags
#################
kAddPauses kSRAddPauses
kAddRejection kSRAddRejection
kAddNoise kSRAddNoise
kMakeOptional kSRMakeOptional
kMakeRepeatable kSRMakeRepeatable
kAddWordSpotting kSRAddWordSpotting
kDefaultFinishing kSRDefaultFinishing
kNoFinishing kSRNoFinishing
#################
# Procedures
#################
SRAddLMObject SRAddLanguageObject
SREmptyLMObject SREmptyLanguageObject
SRChangeLMObject SRChangeLanguageObject
SRRemoveLMObject SRRemoveLanguageObject
SRAbortRecognition SRCancelRecognition
SRGetIndItem SRGetIndexedItem
SRSetIndItem SRSetIndexedItem
SRRemoveIndItem SRRemoveIndexedItem